package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 文件分类
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_document_category")
public class DocumentCategory extends Model<DocumentCategory> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Long id;

	@TableField("parent_id")
	private Long parentId;

	@TableField("code")
	private String code;

	@TableField("name")
	private String name;

	@TableField("operate_time")
	private Date operateTime;

	@TableField("operate_id")
	private Long operateId;


	public Long getId() {
		return id;
	}

	public DocumentCategory setId(Long id) {
		this.id = id;
		return this;
	}

	public Long getParentId() {
		return parentId;
	}

	public DocumentCategory setParentId(Long parentId) {
		this.parentId = parentId;
		return this;
	}

	public String getCode() {
		return code;
	}

	public DocumentCategory setCode(String code) {
		this.code = code;
		return this;
	}

	public String getName() {
		return name;
	}

	public DocumentCategory setName(String name) {
		this.name = name;
		return this;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public DocumentCategory setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
		return this;
	}

	public Long getOperateId() {
		return operateId;
	}

	public DocumentCategory setOperateId(Long operateId) {
		this.operateId = operateId;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}